package com.otitan.la.forest.industry.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.otitan.la.forest.industry.entity.ProjectApplicationEntity;
import com.otitan.la.forest.industry.dto.ProjectApplicationDTO;
import com.otitan.webapp.framework.basepro.model.DataResult;
import org.springframework.validation.BindingResult;

import java.util.List;

/**
 * 项目申报
 *
 * @author jiacs
 * @email xxx
 * @date 2020-10-16 16:41:30
 */
public interface ProjectApplicationService extends IService<ProjectApplicationEntity> {
    /**
     * 新增
     * @return
     */
    DataResult add(ProjectApplicationEntity projectApplication, BindingResult bindingResult);

    /**
     * 批量删除
     * @return
     */
    DataResult batchDelete(List<String> ids);

    /**
     * 修改
     * @return
     */
    DataResult editor(ProjectApplicationEntity projectApplication, BindingResult bindingResult);

    /**
     * 列表查询（分页）
     * @return
     */
    DataResult findPageData(long page, long size, ProjectApplicationDTO projectApplication);

    /**
     * 根据ID查询
     * @return
     */
    DataResult findOne(String id);
}

